package com.example.zyh.service.Impl;


import com.example.zyh.mapper.YezhuMapper;
import com.example.zyh.pojo.Yezhu;
import com.example.zyh.service.YezhuService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class YezhuServiceImpl implements YezhuService {
    @Resource
    private YezhuMapper yezhuMapper;

    @Override
    public List<Yezhu> select() {
        return yezhuMapper.select();
    }

    @Override
    public void addYezhu(Yezhu yezhu) {
        yezhuMapper.addYezhu(yezhu);
    }

    @Override
    public void deleteYezhu(int id) {
        yezhuMapper.deleteYezhu(id);
    }

    @Override
    public void updateYezhu(Yezhu yezhu) {
        yezhuMapper.updateYezhu(yezhu);
    }

    @Override
    public List<Yezhu> selectlike(Yezhu yezhu) {
        return yezhuMapper.selectlike(yezhu);
    }
}
